<?php if (empty($list)): ?>
    <li class="am-padding am-nbfc am-text-center am-text-sm">
        暂无日志
    </li>
<?php else: ?>
    <?php foreach ($list as $key => $value) : ?>
        <li class="am-padding am-nbfc">
            <div class="tm-group">
                <div class="tm-group-head">
                    <a href="<?= $label->url('Master-Article-user', ['id' => $value['user_id']]); ?>"><img src="<?= $value['user_head']; ?>" class="am-img-thumbnail" alt="" width="48" height="48"></a>
                </div>
                <div class="tm-group-item">

                    <div class="am-text-truncate ">
                        <a class="am-link-muted" href="<?= $label->url('Master-Article-view', ['id' => $value['timelog_id']]); ?>" style="">
                            <?= $value['timelog_title']; ?>
                        </a>
                    </div>
                    <div class="am-text-xs">
                        <a href="<?= $label->url('Master-Index-index', ['type' => $value['type_id']]); ?>" class="am-badge"><?= $value['type_name']; ?></a>
                        <a class="am-link-muted" href="<?= $label->url('Master-Article-user', ['id' => $value['user_id']]); ?>"><?= $value['user_name']; ?></a>
                        <time datetime="<?= date('Y-m-d H:i', $value['timelog_createtime']); ?>" title="<?= date('Y-m-d H:i', $value['timelog_createtime']); ?>">发布于 <?= $label->timing($value['timelog_createtime']); ?></time>
                        <?php if ($value['timelog_createtime'] != $value['timelog_updatetime']): ?>
                            <time datetime="<?= date('Y-m-d H:i', $value['timelog_updatetime']); ?>" title="<?= date('Y-m-d H:i', $value['timelog_updatetime']); ?>">最后更新 <?= $label->timing($value['timelog_updatetime']); ?></time>
                        <?php endif; ?>
                    </div>
                    <div class="tm-group-comment">
                        <span class="am-badge am-round am-margin-top am-fr"><?= $value['timelog_comment_num'] ?></span>
                    </div>
                </div>

            </div>

        </li>
    <?php endforeach; ?>
    <li>
        <ul class="am-pagination am-pagination-centered">
            <?= $page; ?>
        </ul>
    </li>
<?php endif; ?>